package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class LocalQualifiedName implements DynamicCursorName {

    private int beginIndex;
    private int endIndex;
    private boolean module;
    private Identifier qualifiedIdentifier;

    public LocalQualifiedName(int beginIndex, boolean module, Identifier qualifiedIdentifier) {
        this.beginIndex = beginIndex;
        this.endIndex = qualifiedIdentifier.getEndIndex();
        this.module = module;
        this.qualifiedIdentifier = qualifiedIdentifier;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public boolean isModule() {
        return module;
    }

    public Identifier getQualifiedIdentifier() {
        return qualifiedIdentifier;
    }

}
